import numpy as np

a1 = np.array([1, 2])
a2 = np.array([[-1, 3], [0, 1], [4, 8]])
# 可以用来实现relu函数
re = np.maximum(a1, a2)
# (3,2)

# [[1 3]
# [1 2]
# [4 8]]
print(re)
